package com.dhcc.DRGsHosp.core.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.openkoala.koala.commons.domain.KoalaLegacyEntity;

/**
 * @title		:DailyRecord.java
 * @description	:
 * @author		:lileizheng
 * @date		:2015年4月2日
 * @version     :1.0
 * @copyright   :DHCC 2013-2014 
 */
@Entity
@Table (name = "T_DAILYRECORD", schema = "DRGs")
public class DailyRecord extends KoalaLegacyEntity {

private static final long serialVersionUID = -2700241427681303048L;
//就诊ID
@Id
@Column(name = "DR_EPISODE_ID" , nullable = false)
private String dr_episode_id;

//病案号
@Column(name = "DR_MR_NO" , nullable = false)
private String dr_mr_no;

//病人姓名
@Column(name = "DR_PATIENT_NAME" , nullable = false)
private String dr_patient_name;

//入院日期
@Column(name = "DR_IN_DATE" , nullable = false)
private Date dr_in_date;

//出院日期
@Column(name = "DR_OUT_DATE" , nullable = false)
private Date dr_out_date;

//病人类型
@Column(name = "DR_PATIENT_TYPE" , nullable = false)
private String dr_patient_type;

//入院科室
@Column(name = "DR_IN_DEP" , nullable = false)
private String dr_in_dep;

//出院科室
@Column(name = "DR_OUT_DEP" , nullable = false)
private String dr_out_dep;

//药品费用
@Column(name = "DR_DRUG_COST")
private Double dr_drug_cost;

//非药品费用
@Column(name = "DR_NODRUG_COST")
private Double dr_nodrug_cost;

//总费用
@Column(name = "DR_TOTAL_COST")
private Double dr_total_cost;

//是否异常,0/1/2,正常/异常/异常并且修改
@Column(name = "DR_IS_ABNORMAL")
private double dr_is_abnormal;

//his入院科室
@Column(name = "DR_IN_HISDEP")
private String dr_in_hisdep;

//his出院科室
@Column(name = "DR_OUT_HISDEP")
private String dr_out_hisdep;

//主治医师
@Column(name = "DR_PROTOMEDICUS")
private String dr_protoMedicus;

//主诊组
@Column(name = "DR_GROUP_NAME")
private String dr_group_name;

//院区
@Column(name = "DR_HOSPCODE")
private String dr_hospcode;


public String getDr_episode_id() {
	return dr_episode_id;
}

public void setDr_episode_id(String dr_episode_id) {
	this.dr_episode_id = dr_episode_id;
}

public String getDr_mr_no() {
	return dr_mr_no;
}

public void setDr_mr_no(String dr_mr_no) {
	this.dr_mr_no = dr_mr_no;
}

public String getDr_patient_name() {
	return dr_patient_name;
}

public void setDr_patient_name(String dr_patient_name) {
	this.dr_patient_name = dr_patient_name;
}

public Date getDr_in_date() {
	return dr_in_date;
}

public void setDr_in_date(Date dr_in_date) {
	this.dr_in_date = dr_in_date;
}

public Date getDr_out_date() {
	return dr_out_date;
}

public void setDr_out_date(Date dr_out_date) {
	this.dr_out_date = dr_out_date;
}

public String getDr_patient_type() {
	return dr_patient_type;
}

public void setDr_patient_type(String dr_patient_type) {
	this.dr_patient_type = dr_patient_type;
}

public String getDr_in_dep() {
	return dr_in_dep;
}

public void setDr_in_dep(String dr_in_dep) {
	this.dr_in_dep = dr_in_dep;
}

public String getDr_out_dep() {
	return dr_out_dep;
}

public void setDr_out_dep(String dr_out_dep) {
	this.dr_out_dep = dr_out_dep;
}



public double getDr_is_abnormal() {
	return dr_is_abnormal;
}

public void setDr_is_abnormal(double dr_is_abnormal) {
	this.dr_is_abnormal = dr_is_abnormal;
}

public String getDr_in_hisdep() {
	return dr_in_hisdep;
}

public void setDr_in_hisdep(String dr_in_hisdep) {
	this.dr_in_hisdep = dr_in_hisdep;
}

public String getDr_out_hisdep() {
	return dr_out_hisdep;
}

public void setDr_out_hisdep(String dr_out_hisdep) {
	this.dr_out_hisdep = dr_out_hisdep;
}

public String getDr_protoMedicus() {
	return dr_protoMedicus;
}

public void setDr_protoMedicus(String dr_protoMedicus) {
	this.dr_protoMedicus = dr_protoMedicus;
}

public String getDr_group_name() {
	return dr_group_name;
}

public void setDr_group_name(String dr_group_name) {
	this.dr_group_name = dr_group_name;
}


public Double getDr_drug_cost() {
	return dr_drug_cost;
}

public void setDr_drug_cost(Double dr_drug_cost) {
	this.dr_drug_cost = dr_drug_cost;
}

public Double getDr_nodrug_cost() {
	return dr_nodrug_cost;
}

public void setDr_nodrug_cost(Double dr_nodrug_cost) {
	this.dr_nodrug_cost = dr_nodrug_cost;
}

public Double getDr_total_cost() {
	return dr_total_cost;
}

public void setDr_total_cost(Double dr_total_cost) {
	this.dr_total_cost = dr_total_cost;
}


public String getDr_hospcode() {
	return dr_hospcode;
}

public void setDr_hospcode(String dr_hospcode) {
	this.dr_hospcode = dr_hospcode;
}

public DailyRecord(String dr_episode_id, String dr_mr_no, String dr_patient_name, Date dr_in_date, Date dr_out_date,
		String dr_patient_type, String dr_in_dep, String dr_out_dep, Double dr_drug_cost, Double dr_nodrug_cost,
		Double dr_total_cost, double dr_is_abnormal, String dr_in_hisdep, String dr_out_hisdep, String dr_protoMedicus,
		String dr_group_name) {
	super();
	this.dr_episode_id = dr_episode_id;
	this.dr_mr_no = dr_mr_no;
	this.dr_patient_name = dr_patient_name;
	this.dr_in_date = dr_in_date;
	this.dr_out_date = dr_out_date;
	this.dr_patient_type = dr_patient_type;
	this.dr_in_dep = dr_in_dep;
	this.dr_out_dep = dr_out_dep;
	this.dr_drug_cost = dr_drug_cost;
	this.dr_nodrug_cost = dr_nodrug_cost;
	this.dr_total_cost = dr_total_cost;
	this.dr_is_abnormal = dr_is_abnormal;
	this.dr_in_hisdep = dr_in_hisdep;
	this.dr_out_hisdep = dr_out_hisdep;
	this.dr_protoMedicus = dr_protoMedicus;
	this.dr_group_name = dr_group_name;
}

@Override
public String toString() {
	return "DailyRecord [dr_episode_id=" + dr_episode_id + ", dr_mr_no=" + dr_mr_no + ", dr_patient_name="
			+ dr_patient_name + ", dr_in_date=" + dr_in_date + ", dr_out_date=" + dr_out_date + ", dr_patient_type="
			+ dr_patient_type + ", dr_in_dep=" + dr_in_dep + ", dr_out_dep=" + dr_out_dep + ", dr_drug_cost="
			+ dr_drug_cost + ", dr_nodrug_cost=" + dr_nodrug_cost + ", dr_total_cost=" + dr_total_cost
			+ ", dr_is_abnormal=" + dr_is_abnormal + ", dr_in_hisdep=" + dr_in_hisdep + ", dr_out_hisdep="
			+ dr_out_hisdep + ", dr_protoMedicus=" + dr_protoMedicus + ", dr_group_name=" + dr_group_name + "]";
}

/**
 * 
 */
public DailyRecord() {
	super();
}

@Override
public Serializable getId() {
	// TODO Auto-generated method stub
	return dr_episode_id;
}

@Override
public String[] businessKeys() {
	// TODO Auto-generated method stub
	return null;
}
/**
 *  DailyRecordMap.  
 *  @Description：字段和属性的对应
 *  @Author LiuHongjun
 *  @return 
 *  @Date:2017年10月13日下午1:29:08
 */
public Map<String, Object> dailyRecordMap() {
	Map<String,Object> map=new HashMap<>();
	map.put("DR_EPISODE_ID", "dr_episode_id");
	map.put("DR_MR_NO", "dr_mr_no");
	map.put("DR_PATIENT_NAME", "dr_patient_name");
	map.put("DR_IN_DATE", "dr_in_date");
	map.put("DR_OUT_DATE", "dr_out_date");
	map.put("DR_PATIENT_TYPE", "dr_patient_type");
	map.put("DR_IN_DEP", "dr_in_dep");
	map.put("DR_OUT_DEP", "dr_out_dep");
	map.put("DR_DRUG_COST", "dr_drug_cost");
	map.put("DR_NODRUG_COST", "dr_nodrug_cost");
	map.put("DR_TOTAL_COST", "dr_total_cost");
	map.put("DR_IS_ABNORMAL", "dr_is_abnormal");
	map.put("DR_IN_HISDEP", "dr_in_hisdep");
	map.put("DR_OUT_HISDEP", "dr_out_hisdep");
	map.put("DR_PROTOMEDICUS", "dr_protoMedicus");
	map.put("DR_GROUP_NAME", "dr_group_name");
	return map;
}
}

